<?php


class pStandard_String extends cFormElement {
	
	function getEditText($fieldName, $id, $value, cView $view)
	{
		$size = $this->getAttr("size");
		if (!is_numeric($size) || $size==0) $size = 20;

		$class = $this->getAttr("field")." ".$this->getAttr("class");
		$s="<fieldset class=\"input\" \">
				<legend>
					<label for=\"".$id."\" />".$this->getAttr("label")."</label>
				</legend>
				<input type=\"text\" size=\"$size\" id=\"$id\" class=\"".$class."\" value=\"".htmlspecialchars($value)."\" name=\"".$fieldName."\" />
			</fieldset>";
		return $s;
	}
	
}
 
?>